package object2;

/**
 * @Author:Cjj
 * @Date:2025/4/26
 * @Description:person类
 */
public class Person {
    String name;
    String country;
    String address;

   public Person(String name,String country,String address)
   {
       this.name = name;
       this.country = country;
       this.address = address;
   }

    public static void main(String[] args) {
        Person p1 = new Person("昭贵", "中国", "北京");
        Person p2 = new Person("李四", "美国", "纽约");

        p1.country="韩国";
        p2.country="德国";

        System.out.println(p1.country);
        System.out.println(p2.country);
    }
}
